#!/bin/bash

echo "========================================"
echo "重新编译项目以修复依赖问题"
echo "========================================"

echo "1. 清理项目..."
mvn clean

echo "2. 编译ruoyi-homepage模块..."
mvn compile -pl ruoyi-homepage

echo "3. 安装ruoyi-homepage到本地仓库..."
mvn install -pl ruoyi-homepage -DskipTests

echo "4. 编译整个项目..."
mvn compile

echo "5. 打包项目..."
mvn package -DskipTests

echo "========================================"
echo "编译完成！"
echo "========================================"
